<?php
/**
 * @package Flipper Open Source New Generation Blogging
 * @author Flipper Team <code@flipper.com>
 * @copyright Flipper Inc , 2011
 * @version 1.0
 * @name default template index file
 */
if ( ! defined('Flipper')) exit('Access allowed');
?>


{$lang['news']}

<?php

echo '<ul id="news">';

    $news_search = array(
                        "select"    => "*" , // default *
                        "category"  => "news" ,
                        "limit"     => 15 , // 15 or 15 , 20 
                        "order"     => array(
                                            "column" => "date",
                                            "by"     => "desc" //default desc
                                            )
                        );
    foreach($this->posts($news_search) as $post)
    {
        echo '<li>'.$post['title'].' <u>('.$post['date'].')</u></li>';
    }


echo '</ul>';

 # pagination put coding....
?>